package tool

import java.io.File

import cats.data.Validated
import dao.SampleDao
import implicits.Implicits._
import tool.Pojo.SampleInfoFileCheckData

/**
 * Created by yz on 12/3/2020
 */
object FileTool {

  def fileCheck(file: File, data:SampleInfoFileCheckData) = {
   FileTool.sampleInfoFileCheck(file, data)
  }

  def sampleInfoFileCheck(file: File, data:SampleInfoFileCheckData) = {
    SampleInfoFileValidTool.valid(file.xlsxLines(), data)
  }

}
